/*
七牛云配置
*/
const qiniu = require('qiniu')

// 创建上传凭证
const accessKey = 'heJC8ANYh0ZMxiLkAQCet4qZEnqrqiDA_erjUiw8'
const secretKey = 'p88sk08gR7N5AliVMWuJWnqvLB8C01Ro1zDSKPg5'
const mac = new qiniu.auth.digest.Mac(accessKey, secretKey)
const options = {
  scope: 'travel',
  expires: 7200
}

const putPolicy = new qiniu.rs.PutPolicy(options)

const uploadToken = putPolicy.uploadToken(mac)


module.exports = {
  uploadToken  
}